<?php 
include_once("codelibrary/inc/variables.php");
include_once("session.php");
include_once("codelibrary/inc/functions.php");

$business_id = $_SESSION['business_id'];
$service_id = $_GET['service_id'];

$title = $TR_Title;
$description = $TN_Description;
$customeraccess = $TN_Access;
$duration = $TR_Duration;
$cost = $TN_Cost;
$type = $TN_Type;
print $service_id;
exit;
if($service_id!='') {
	$query = "update services set title='$title',description='$descrioption',$customeraccess='$customeraccess',$duration='$duration',$cost='$cost' where service_id='$service_id'";
	mysql_query($query) or die(mysql_error().'no records upated');
	header("Location: service-view-details.php?msg=Added");
	exit;
}


insertData($services_table);
$last_insert_id=mysql_insert_id();

header("Location: service-view-details.php?msg=Added");
?>